home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C++ / Snippets / QD3D Juggler / Juggler Sources / CCameraMover.h < prev    next >
Encoding:
Text File  |  1995-12-27  |  550 b   |  27 lines  |  [TEXT/CWIE]

  1. //
  2. //    CCameraMover.h
  3. //
  4. //    class CCameraMover
  5. //    Moves a camera given changes in spherical coordinate values.
  6. //
  7. //    by James Jennings
  8. //    November 26, 1995
  9. //
  10. //    Limitations: Cannot get within a few degrees of the z-axis. (to avoid singular math)
  11. //
  12.  
  13. #pragma once
  14.  
  15. class CCameraMover {
  16. public:
  17.                 CCameraMover(TQ3ViewObject aView);
  18.     virtual        ~CCameraMover();
  19.     
  20.     virtual void    Move(float deltaTheta, float deltaPhi);
  21. protected:
  22.     virtual void    AdjustUpVector();
  23.     TQ3CameraObject        mCamera;
  24.     TQ3CameraPlacement    mPlacement;
  25.     TQ3SphericalPoint    mLocation;
  26. };
  27.